package com.xnyzc.lhy.mis.service.Gould.impl;

import com.xnyzc.lhy.common.component.amap.GouldMapUtils;
import com.xnyzc.lhy.common.component.redis.RedisCommon;
import com.xnyzc.lhy.common.constant.RedisPrefixConstant;
import com.xnyzc.lhy.common.entity.GouldLYResult;
import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.exception.PangException;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.common.util.CheckUtil;
import com.xnyzc.lhy.mis.service.Gould.GouldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class GouldServiceImpl implements GouldService{


    /**
     * 注册猎鹰服务
     * @param name 服务名称
     * @param desc 备注
     * @return
     */
    @Override
    public Rv registGouldService(String name, String desc) {
        return Rv.wrap(GouldMapUtils.registGouldLYService(name, desc));
    }
}
